QuickOPC User's Guide and Reference
ServerTimestamp Property (UABaseVariable<TValue,TAttribute>)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.InformationModel Namespace > UABaseVariable<TValue,TAttribute> Class : ServerTimestamp Property
Contains the server timestamp. In UTC.
Syntax
'Declaration
 
<MappingTagAttribute("OpcLabs.EasyOpc.UA.InformationModel.VariableValue")>
<UADataAttribute(Kind=UADataMappingKind.ServerTimestamp, Operations=UADataMappingOperations.ReadAndSubscribe)>
Public Property ServerTimestamp As Date
'Usage
 
Dim instance As UABaseVariable(Of TValue,TAttribute)
Dim value As Date
 
instance.ServerTimestamp = value
 
value = instance.ServerTimestamp
[MappingTag("OpcLabs.EasyOpc.UA.InformationModel.VariableValue")]
[UAData(Kind=UADataMappingKind.ServerTimestamp, Operations=UADataMappingOperations.ReadAndSubscribe)]
public DateTime ServerTimestamp {get; set;}
[MappingTag("OpcLabs.EasyOpc.UA.InformationModel.VariableValue")]
[UAData(Kind=UADataMappingKind.ServerTimestamp, Operations=UADataMappingOperations.ReadAndSubscribe)]
public:
property DateTime ServerTimestamp {
   DateTime get();
   void set (    DateTime value);
}
Remarks

When writing, be aware that writing the server timestamp is not supported by some servers, including the OPC Foundation sample server.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also